from django.urls import path

from . import views
urlpatterns = [
    path('register/', views.RegisterView, name='register'),  # 注册接口
    path('login/', views.LoginView, name='login'),  # 登录接口
    path('get_capthcha/', views.get_captcha, name='get_capthcha'),  # 验证码
    path('logout/', views.logout, name='logout'),  # 退出登录
    path('if_login/', views.if_login_cookie, name='if_login'),  # 判断是否登录
    path('change_user_info/', views.change_user_info, name='change_user_info'),  # 修改用户信息
    path('upload_img/', views.upload_img, name='upload_img'),  # 上传头像
    path('reset_pwd/', views.Reset_pwd.as_view(), name='reset_pwd'),  # 更改密码
]